import request from '@/utils/request'

// 项目报备分页
export function getList(params) {
  return request({
    url: '/projectReport/selectPage',
    method: 'POST',
    params
  })
}

// 添加
export function addProjectReport(data) {
  return request({
    url: '/projectReport/add',
    method: 'POST',
    data
  })
}

// 修改
export function updateProjectReport(data) {
  return request({
    url: '/projectReport/update',
    method: 'post',
    data
  })
}

// 删除
export function delProjectReport(data) {
  return request({
    url: '/projectReport/del',
    method: 'post',
    data
  })
}

// 查询
export function selectProjectReport(params) {
  return request({
    url: '/projectReport/findId',
    method: 'POST',
    params
  })
}

// 查询全部父级分类的接口
export function getParentProfessionList() {
  return request({
    url: '/professions/getParentProfessionList',
    method: 'post'
  })
}

// 判断报备信息是否存在
export function isReport(params) {
  return request({
    url: '/projectReport/isReport',
    method: 'post',
    params
  })
}

